﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Runtime.Serialization;

namespace _180FrameWork.Common.Models
{
    [Description("服务端返回消息结构")]
    [DataContract]
    public class MSG<T>
    {
        public MSG() {  }
        bool r = false;
        string i = "";
        T d = default(T);
        [Description("执行结果")]
        [DataMember]
        public bool R
        {
            get { return this.r; }
            set { this.r = value; }
        }
        [Description("附加信息")]
        [DataMember]
        public string I
        {
            get { return this.i; }
            set { this.i = value; }
        }
        [Description("数据载体")]
        [DataMember]
        public T D
        {
            get { return this.d; }
            set { this.d = value; }
        }
    }
    [Description("服务端返回消息结构")]
    [DataContract]
    public class MSG
    {
        public MSG() {  }
        bool r = false;
        string i = "";
        [Description("执行结果")]
        [DataMember]
        public bool R
        {
            get { return this.r; }
            set { this.r = value; }
        }
        [Description("附加信息")]
        [DataMember]
        public string I
        {
            get { return this.i; }
            set { this.i = value; }
        }
    }
}
